<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css的引入方式 | JoMin·个人笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../img/gitbook的安装.html" />
    
    
    <link rel="prev" href="../../index.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1"
        data-chapter-title="css的引入方式"
        data-filepath="md/css/1、css的引入方式.md"
        data-basepath="../.."
        data-revision="Thu Aug 23 2018 15:14:40 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1" data-path="md/css/1、css的引入方式.html">
            
                
                    <a href="../../md/css/1、css的引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        css的引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2" data-path="img/gitbook的安装.html">
            
                
                    <a href="../../img/gitbook的安装.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        gitbook的安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/css/3、常用的标签.html">
            
                
                    <a href="../../md/css/3、常用的标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        常用的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/css/4、表格的使用.html">
            
                
                    <a href="../../md/css/4、表格的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        表格的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="md/css/5、表单.html">
            
                
                    <a href="../../md/css/5、表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="md/css/6、a标签的使用.html">
            
                
                    <a href="../../md/css/6、a标签的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7" data-path="md/css/7、盒子模型.html">
            
                
                    <a href="../../md/css/7、盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8" data-path="md/css/8、浮动.html">
            
                
                    <a href="../../md/css/8、浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9" data-path="md/css/9、css常见问题.html">
            
                
                    <a href="../../md/css/9、css常见问题.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        css常见问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="10" data-path="md/css/10、位置定位.html">
            
                
                    <a href="../../md/css/10、位置定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.</b>
                        
                        位置定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="11" data-path="md/css/11、阴影设置.html">
            
                
                    <a href="../../md/css/11、阴影设置.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>11.</b>
                        
                        阴影设置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="12" data-path="md/css/12、自定义动画.html">
            
                
                    <a href="../../md/css/12、自定义动画.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>12.</b>
                        
                        动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="13" data-path="md/css/13、容器居中方法.html">
            
                
                    <a href="../../md/css/13、容器居中方法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>13.</b>
                        
                        容器居中
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14" data-path="md/css/移动端/移动端.html">
            
                
                    <a href="../../md/css/移动端/移动端.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.</b>
                        
                        移动端
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="14.1" data-path="md/css/移动端/1、移动端第一节课.html">
            
                
                    <a href="../../md/css/移动端/1、移动端第一节课.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.1.</b>
                        
                        移动端第一节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14.2" data-path="md/css/移动端/2、移动端小问题.html">
            
                
                    <a href="../../md/css/移动端/2、移动端小问题.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.2.</b>
                        
                        移动端小问题
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="15" data-path="md/css/flex布局/flex.html">
            
                
                    <a href="../../md/css/flex布局/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.</b>
                        
                        flex弹性盒子
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="15.1" data-path="md/css/flex布局/1、flex布局.html">
            
                
                    <a href="../../md/css/flex布局/1、flex布局.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.1.</b>
                        
                        flex布局
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="16" data-path="md/css/16、fullpage的使用.html">
            
                
                    <a href="../../md/css/16、fullpage的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>16.</b>
                        
                        fullpage的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="17" data-path="md/css/响应式布局/bootstrap.html">
            
                
                    <a href="../../md/css/响应式布局/bootstrap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>17.</b>
                        
                        响应式布局
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="17.1" data-path="md/css/响应式布局/1、Bootstrap.html">
            
                
                    <a href="../../md/css/响应式布局/1、Bootstrap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>17.1.</b>
                        
                        Bootstrap
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="17.2" data-path="md/css/响应式布局/2、媒体查询.html">
            
                
                    <a href="../../md/css/响应式布局/2、媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>17.2.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="18" data-path="md/css/JavaScript/JavaScript.html">
            
                
                    <a href="../../md/css/JavaScript/JavaScript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.</b>
                        
                        JavaScript
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="18.1" data-path="md/css/JavaScript/1、JavaScript数据类型.html">
            
                
                    <a href="../../md/css/JavaScript/1、JavaScript数据类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.1.</b>
                        
                        JS数据类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.2" data-path="md/css/JavaScript/2、数据类型的转换.html">
            
                
                    <a href="../../md/css/JavaScript/2、数据类型的转换.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.2.</b>
                        
                        数据类型的转换
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.3" data-path="md/css/JavaScript/3、运算符.html">
            
                
                    <a href="../../md/css/JavaScript/3、运算符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.3.</b>
                        
                        运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.4" data-path="md/css/JavaScript/4、赋值运算符.html">
            
                
                    <a href="../../md/css/JavaScript/4、赋值运算符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.4.</b>
                        
                        赋值运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.5" data-path="md/css/JavaScript/5、比较运算符.html">
            
                
                    <a href="../../md/css/JavaScript/5、比较运算符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.5.</b>
                        
                        比较运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.6" data-path="md/css/JavaScript/6、逻辑操作符.html">
            
                
                    <a href="../../md/css/JavaScript/6、逻辑操作符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.6.</b>
                        
                        逻辑操作符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.7" data-path="md/css/JavaScript/7、条件运算符.html">
            
                
                    <a href="../../md/css/JavaScript/7、条件运算符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.7.</b>
                        
                        条件运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.8" data-path="md/css/JavaScript/8、位运算符.html">
            
                
                    <a href="../../md/css/JavaScript/8、位运算符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.8.</b>
                        
                        位运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.9" data-path="md/css/JavaScript/9、条件语句.html">
            
                
                    <a href="../../md/css/JavaScript/9、条件语句.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.9.</b>
                        
                        条件语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.10" data-path="md/css/JavaScript/10、循环语句.html">
            
                
                    <a href="../../md/css/JavaScript/10、循环语句.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.10.</b>
                        
                        循环语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.11" data-path="md/css/JavaScript/11、break和continue.html">
            
                
                    <a href="../../md/css/JavaScript/11、break和continue.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.11.</b>
                        
                        break和continue
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.12" data-path="md/css/JavaScript/12、for循环.html">
            
                
                    <a href="../../md/css/JavaScript/12、for循环.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.12.</b>
                        
                        for循环
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.13" data-path="md/css/JavaScript/13、多层循环.html">
            
                
                    <a href="../../md/css/JavaScript/13、多层循环.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.13.</b>
                        
                        多层循环
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.14" data-path="md/css/JavaScript/14、for-in循环.html">
            
                
                    <a href="../../md/css/JavaScript/14、for-in循环.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.14.</b>
                        
                        for-in循环
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.15" data-path="md/css/JavaScript/15、try-catch语句.html">
            
                
                    <a href="../../md/css/JavaScript/15、try-catch语句.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.15.</b>
                        
                        try-catch语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.16" data-path="md/css/JavaScript/16、函数.html">
            
                
                    <a href="../../md/css/JavaScript/16、函数.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.16.</b>
                        
                        函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.17" data-path="md/css/JavaScript/17、循环排序.html">
            
                
                    <a href="../../md/css/JavaScript/17、循环排序.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.17.</b>
                        
                        循环排序
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.18" data-path="md/css/JavaScript/18、es6语法.html">
            
                
                    <a href="../../md/css/JavaScript/18、es6语法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.18.</b>
                        
                        es6语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.19" data-path="md/css/JavaScript/19、数组对象.html">
            
                
                    <a href="../../md/css/JavaScript/19、数组对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.19.</b>
                        
                        数组对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.20" data-path="md/css/JavaScript/20、date对象.html">
            
                
                    <a href="../../md/css/JavaScript/20、date对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.20.</b>
                        
                        date对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.21" data-path="md/css/JavaScript/21、Boolean对象.html">
            
                
                    <a href="../../md/css/JavaScript/21、Boolean对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.21.</b>
                        
                        Boolean对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.22" data-path="md/css/JavaScript/22、数学对象.html">
            
                
                    <a href="../../md/css/JavaScript/22、数学对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.22.</b>
                        
                        数学对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="18.23" data-path="md/css/JavaScript/23、对象的创建.html">
            
                
                    <a href="../../md/css/JavaScript/23、对象的创建.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>18.23.</b>
                        
                        对象的创建
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="19" data-path="md/css/BOM/BOM.html">
            
                
                    <a href="../../md/css/BOM/BOM.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.</b>
                        
                        BOM
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="19.1" data-path="md/css/BOM/1、window对象.html">
            
                
                    <a href="../../md/css/BOM/1、window对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.1.</b>
                        
                        window对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="19.2" data-path="md/css/BOM/2、navigator对象.html">
            
                
                    <a href="../../md/css/BOM/2、navigator对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.2.</b>
                        
                        navigator对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="19.3" data-path="md/css/BOM/3、screen对象.html">
            
                
                    <a href="../../md/css/BOM/3、screen对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.3.</b>
                        
                        screen对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="19.4" data-path="md/css/BOM/4、history对象.html">
            
                
                    <a href="../../md/css/BOM/4、history对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.4.</b>
                        
                        history对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="19.5" data-path="md/css/BOM/5、location对象.html">
            
                
                    <a href="../../md/css/BOM/5、location对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.5.</b>
                        
                        location对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="19.6" data-path="md/css/BOM/6、cookie对象.html">
            
                
                    <a href="../../md/css/BOM/6、cookie对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.6.</b>
                        
                        cookie对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="19.7" data-path="md/css/BOM/7、html5本地存储.html">
            
                
                    <a href="../../md/css/BOM/7、html5本地存储.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>19.7.</b>
                        
                        html5本地存储
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="20" data-path="md/css/DOM/DOM.html">
            
                
                    <a href="../../md/css/DOM/DOM.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.</b>
                        
                        DOM
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="20.1" data-path="md/css/DOM/1、DOM介绍.html">
            
                
                    <a href="../../md/css/DOM/1、DOM介绍.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.1.</b>
                        
                        DOM介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="20.2" data-path="md/css/DOM/2、元素对象.html">
            
                
                    <a href="../../md/css/DOM/2、元素对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.2.</b>
                        
                        元素对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="20.3" data-path="md/css/DOM/3、DOM事件1.html">
            
                
                    <a href="../../md/css/DOM/3、DOM事件1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.3.</b>
                        
                        DOM事件1
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="20.4" data-path="md/css/DOM/4、DOM事件2.html">
            
                
                    <a href="../../md/css/DOM/4、DOM事件2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.4.</b>
                        
                        DOM事件2
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="20.5" data-path="md/css/DOM/5、移动端事件.html">
            
                
                    <a href="../../md/css/DOM/5、移动端事件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.5.</b>
                        
                        移动端事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="20.6" data-path="md/css/DOM/6、ajax.html">
            
                
                    <a href="../../md/css/DOM/6、ajax.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>20.6.</b>
                        
                        ajax
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="21" data-path="md/css/jQuery/jQuery.html">
            
                
                    <a href="../../md/css/jQuery/jQuery.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>21.</b>
                        
                        jQuery
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="21.1" data-path="md/css/jQuery/1、jQuery第一节课.html">
            
                
                    <a href="../../md/css/jQuery/1、jQuery第一节课.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>21.1.</b>
                        
                        jQuery第一节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="21.2" data-path="md/css/jQuery/2、jQuery第二节课.html">
            
                
                    <a href="../../md/css/jQuery/2、jQuery第二节课.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>21.2.</b>
                        
                        jQuery第二节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="21.3" data-path="md/css/jQuery/3、正则表达式.html">
            
                
                    <a href="../../md/css/jQuery/3、正则表达式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>21.3.</b>
                        
                        正则表达式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="21.4" data-path="md/css/jQuery/4、jQuery第三节课.html">
            
                
                    <a href="../../md/css/jQuery/4、jQuery第三节课.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>21.4.</b>
                        
                        jQuery第三节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="21.5" data-path="md/css/jQuery/5、ajax.html">
            
                
                    <a href="../../md/css/jQuery/5、ajax.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>21.5.</b>
                        
                        ajax
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >JoMin·个人笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;">css&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;</h1>
<h4 id="css&#x6709;&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;">css&#x6709;&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;</h4>
<ol>
<li>&#x884C;&#x5185;&#x5F15;&#x5165;&#xFF1A;&#x76F4;&#x63A5;&#x5728;&#x5143;&#x7D20;&#x7684;&#x5F00;&#x5934;&#x6807;&#x7B7E;&#x91CC;&#x9762;&#x5199;&#x76F8;&#x5E94;&#x7684;&#x6837;&#x5F0F;</li>
<li>&#x9875;&#x5185;&#x5F15;&#x5165;&#xFF1A;&#x76F4;&#x63A5;&#x901A;&#x8FC7;style&#x6807;&#x7B7E;&#x5199;&#x5728;head&#x91CC;&#x9762;</li>
<li>&#x5916;&#x90E8;&#x5F15;&#x5165;&#xFF1A;&#x901A;&#x8FC7;link&#x6807;&#x7B7E;&#x5F15;&#x5165;&#x5916;&#x90E8;&#x7684;css&#x6837;&#x5F0F;&#x8868;</li>
</ol>
<p>&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#x884C;&#x5185;&#x6837;&#x5F0F;&gt;&#x9875;&#x5185;&#x6837;&#x5F0F;&gt;&#x5916;&#x90E8;&#x5F15;&#x5165;&#xFF08;&#x5C31;&#x8FD1;&#x539F;&#x5219;&#xFF09;</p>
<p>&#x9875;&#x9762;&#x6E32;&#x67D3;&#xFF1A;&#x4ECE;&#x4E0A;&#x5230;&#x4E0B;&#x7684;&#x8FC7;&#x7A0B;</p>
<h4 id="css&#x6837;&#x5F0F;&#x7684;&#x4F7F;&#x7528;">css&#x6837;&#x5F0F;&#x7684;&#x4F7F;&#x7528;</h4>
<ul>
<li>&#x9009;&#x62E9;&#x7B26;&#xFF1A;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x7B26;(&#x5668;)&#xFF0C;&#x76F4;&#x63A5;&#x628A;&#x5143;&#x7D20;&#x540D;&#x5F53;&#x4F5C;&#x9009;&#x62E9;&#x7B26;(&#x5668;)&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;div</li>
<li>&#x901A;&#x914D;&#x7B26;&#xFF1A;&#x7528;*&#x8868;&#x793A;&#xFF0C;&#x901A;&#x914D;&#x7B26;&#x53EF;&#x4EE5;&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x7684;&#x5143;&#x7D20;</li>
<li>&#x7C7B;&#x540D;&#x9009;&#x62E9;&#x5668;&#xFF1A;&#x7528;class(&#x7C7B;)&#x6765;&#x5B9A;&#x4E49;&#xFF0C;&#x5728;css&#x4E2D;&#xFF0C;&#x7528;&quot;.&quot;&#x6765;&#x8868;&#x793A;&#x7C7B;&#xFF0C;&#x7C7B;&#x540D;&#x53EF;&#x91CD;&#x590D;&#x4F7F;&#x7528;</li>
<li>id&#x9009;&#x62E9;&#x5668;&#xFF1A;&#x7528;id&#x6765;&#x5B9A;&#x4E49;&#xFF0C;&#x5728;css&#x4E2D;&#xFF0C;&#x7528;&quot;#&quot;&#x6765;&#x8868;&#x793A;id&#xFF0C;id&#x662F;&#x552F;&#x4E00;&#x7684;&#xFF0C;&#x4E0D;&#x80FD;&#x91CD;&#x590D;&#x4F7F;&#x7528;</li>
</ul>
<p>&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x7684;&#x5BBD;&#x3001;&#x9AD8;&#x5EA6;</p>
<pre><code>    width:100px;
    height:100px;
</code></pre><p>&#x5B57;&#x4F53;&#x6837;&#x5F0F;</p>
<pre><code>    font-size:&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;
    font-weight:&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x7C97;&#x7EC6;&#xFF0C;100~500&#x4E3A;&#x6B63;&#x5E38;&#x5927;&#x5C0F;&#xFF0C;600~900&#xFF0C;bold&#x4E3A;&#x52A0;&#x7C97;&#x6548;&#x679C;
    font-fmily:&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x7CFB;&#x5217;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&#xFF0C;&#x9ED1;&#x4F53;...
    font-style:&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x7684;&#x6837;&#x5F0F;&#xFF0C;italic&#x3001;oblique:&#x659C;&#x4F53;&#xFF0C;normal:&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;
    line-height:&#x8BBE;&#x7F6E;&#x884C;&#x9AD8;(&#x901A;&#x5E38;&#x4F1A;&#x8BBE;&#x7F6E;1.5&#x500D;&#x7684;&#x884C;&#x9AD8;&#xFF0C;&#x8FD9;&#x4E2A;1.5&#x500D;&#x6307;&#x7684;&#x662F;&#x81EA;&#x8EAB;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x7684;1.5&#x500D;)
    &#x6CE8;&#x610F;&#xFF1A;:&#x5F53;&#x5BB9;&#x5668;&#x91CC;&#x9762;&#x53EA;&#x6709;&#x4E00;&#x884C;&#x6587;&#x5B57;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8BBE;&#x7F6E;&#x884C;&#x9AD8;&#x7B49;&#x4E8E;&#x5BB9;&#x5668;&#x7684;&#x9AD8;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x5BB9;&#x5668;&#x91CC;&#x9762;&#x7684;&#x6587;&#x5B57;&#x5782;&#x76F4;&#x5C45;&#x4E2D;
    color:&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x989C;&#x8272;
    opacity:&#x7528;&#x6765;&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x900F;&#x660E;&#x5EA6;
</code></pre><p>&#x80CC;&#x666F;&#x5143;&#x7D20;</p>
<pre><code>    background:&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x7684;&#x80CC;&#x666F;&#x56FE;&#x7247;&#x6216;&#x8005;&#x80CC;&#x666F;&#x989C;&#x8272;
    background-color:&#x53EA;&#x80FD;&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x7684;&#x80CC;&#x666F;&#x989C;&#x8272;
    background-image:&#x53EA;&#x80FD;&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x7684;&#x80CC;&#x666F;&#x56FE;&#x7247;
    background-repeat:&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x662F;&#x5426;&#x91CD;&#x590D;&#x51FA;&#x73B0;(no-repeat:&#x4E0D;&#x91CD;&#x590D;&#x51FA;&#x73B0;)
</code></pre><p>&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;</p>
<pre><code>    background-size:&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;&#x7684;&#x5927;&#x5C0F;
                    &#x5F53;&#x53EA;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x503C;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8868;&#x793A;&#x53EA;&#x8BBE;&#x7F6E;&#x4E86;&#x80CC;&#x666F;&#x56FE;&#x7247;&#x7684;&#x5BBD;&#x5EA6;&#xFF08;width&#xFF09;
                    &#x5F53;&#x8BBE;&#x7F6E;&#x4E24;&#x4E2A;&#x503C;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x8868;&#x793A;&#x5BBD;&#x5EA6;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x8868;&#x793A;&#x9AD8;&#x5EA6;&#xFF08;height&#xFF09;
                    auto:&#x56FE;&#x7247;&#x539F;&#x6765;&#x7684;&#x5927;&#x5C0F;
                    cover:&#x5C06;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x7B49;&#x6BD4;&#x7F29;&#x653E;&#x5230;&#x5B8C;&#x5168;&#x8986;&#x76D6;&#x5BB9;&#x5668;&#xFF0C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x6709;&#x53EF;&#x80FD;&#x8D85;&#x51FA;&#x5BB9;&#x5668;&#x3002;
                    contain:&#x5C06;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x7B49;&#x6BD4;&#x7F29;&#x653E;&#x5230;&#x5BBD;&#x5EA6;&#x6216;&#x9AD8;&#x5EA6;&#x4E0E;&#x5BB9;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#x6216;&#x9AD8;&#x5EA6;&#x76F8;&#x7B49;&#xFF0C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x59CB;&#x7EC8;&#x88AB;&#x5305;&#x542B;&#x5728;&#x5BB9;&#x5668;&#x5185;&#x3002;
</code></pre><p>&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;&#x4F4D;&#x7F6E;</p>
<pre><code>    background-position:&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;&#x7684;&#x4F4D;&#x7F6E;
                        left top:&#x5DE6;&#x4E0A;&#x89D2;
                        right top:&#x53F3;&#x4E0A;&#x89D2;
                        left bottom:&#x5DE6;&#x4E0B;&#x89D2;
                        right bottom:&#x53F3;&#x4E0B;&#x89D2;
                        center:&#x5C45;&#x4E2D;
    &#x5177;&#x4F53;&#x6570;&#x503C;:&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x4E3A;X&#x8F74;&#x65B9;&#x5411;&#x7684;&#x504F;&#x79FB;&#x91CF;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x4E3A;Y&#x8F74;&#x65B9;&#x5411;&#x7684;&#x504F;&#x79FB;&#x91CF;            
    background-position-x:&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;X&#x8F74;&#x65B9;&#x5411;&#x4E0A;&#x7684;&#x504F;&#x79FB;&#x91CF;
    background-position-y:&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;Y&#x8F74;&#x65B9;&#x5411;&#x4E0A;&#x7684;&#x504F;&#x79FB;&#x91CF;
</code></pre><p>i&#x4E3A;&#x659C;&#x4F53;&#x6807;&#x7B7E;</p>
<pre><code>    i{
        font-style: normal;normal&#xFF1A;&#x4F7F;&#x659C;&#x4F53;&#x53D8;&#x6210;&#x6B63;&#x5E38;&#x5B57;&#x4F53;
    }
</code></pre><p>&#x6587;&#x5B57;&#x5BF9;&#x9F50;</p>
<pre><code>    &#x6587;&#x5B57;&#x6C34;&#x5E73;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#xFF1A;text-align
                left:&#x5DE6;&#x5BF9;&#x9F50;
                right:&#x53F3;&#x5BF9;&#x9F50;
                center:&#x5C45;&#x4E2D;&#x5BF9;&#x9F50;
</code></pre><p>&#x5149;&#x6807;&#x8BBE;&#x7F6E;</p>
<pre><code>    cursor:&#x8BBE;&#x7F6E;&#x5149;&#x6807;&#x6837;&#x5F0F;
      pointer:&#x9F20;&#x6807;&#x53D8;&#x6210;&#x5C0F;&#x624B;
</code></pre><p>&#x4F2A;&#x7C7B;&#x6548;&#x679C;(element:hover)
&#x5373;&#x5F53;&#x9F20;&#x6807;&#x79FB;&#x52A8;&#x5230;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x4E0A;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F1A;&#x89E6;&#x53D1;&#x4E00;&#x4E9B;&#x4E8B;&#x4EF6;&#xFF08;&#x8FD9;&#x4E9B;&#x4E8B;&#x4EF6;&#x7531;&#x6211;&#x4EEC;&#x81EA;&#x5DF1;&#x5B9A;&#x4E49;&#xFF09;
&#x6BD4;&#x5982;:&#x6539;&#x53D8;&#x8BE5;&#x5143;&#x7D20;&#x7684;&#x80CC;&#x666F;&#x989C;&#x8272;</p>
<pre><code>    .btn:hover{
            background: #fbde92;
            }
</code></pre><h4 id="css&#x9009;&#x62E9;&#x7B26;">CSS&#x9009;&#x62E9;&#x7B26;</h4>
<p>&#x7FA4;&#x7EC4;&#x9009;&#x62E9;&#x7B26;&#xFF1A;&#x7528;&#x201C;&#xFF0C;&#x201D;&#x8868;&#x793A;&#xFF0C;&#x5F53;&#x9700;&#x8981;&#x9009;&#x62E9;&#x5230;&#x591A;&#x4E2A;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5143;&#x7D20;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x7FA4;&#x7EC4;&#x9009;&#x62E9;&#x7B26;&#x3002;</p>
<p>&#x5173;&#x7CFB;&#x9009;&#x62E9;&#x7B26;&#xFF1A;</p>
<pre><code>1.&#x5305;&#x542B;&#x9009;&#x62E9;&#x7B26;&#xFF1A;&#x7528;&#x7A7A;&#x683C;&#x8868;&#x793A;&#x3002;
2.&#x5B50;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x7528;&#x201C;&gt;&#x201D;&#x8868;&#x793A;&#xFF0C;&#x7528;&#x4E0E;&#x9009;&#x62E9;&#x5230;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x7684;&#x76F4;&#x63A5;&#x5B50;&#x5143;&#x7D20;&#x3002;
3.&#x5144;&#x5F1F;&#x9009;&#x62E9;&#x7B26;&#xFF1A;y&#x7528;&#x4E00;&#x4E2A;&#x6CE2;&#x6D6A;&#x7EBF;&#x201C;~&#x201D;&#x6765;&#x8868;&#x793A;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x9009;&#x62E9;&#x5230;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x7684;&#x5144;&#x5F1F;&#x5143;&#x7D20;&#xFF0C;&#x6CE8;&#x610F;&#xFF0C;&#x5144;&#x5F1F;&#x9009;&#x62E9;&#x7B26;&#x53EA;&#x80FD;&#x9009;&#x62E9;&#x5230;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x3002;
4.&#x76F8;&#x90BB;&#x9009;&#x62E9;&#x7B26;&#xFF1A;&#x7528;&#x201C;+&#x201D;&#x8868;&#x793A;&#xFF0C;&#x7528;&#x4E8E; &#x9009;&#x62E9;&#x5230;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x7684;&#x540E;&#x9762;&#x90A3;&#x4E00;&#x4E2A;&#x76F8;&#x90BB;&#x5143;&#x7D20;&#x3002;
</code></pre><p>&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x7B26;&#xFF1A;</p>
<pre><code>:nth-child(n),&#x5339;&#x914D;&#x5230;&#x7236;&#x7EA7;&#x5143;&#x7D20;&#x7684;&#x7B2C;n&#x4E2A;&#x5B50;&#x5143;&#x7D20;,
&#x7528;&#x6765;&#x9009;&#x62E9;&#x5230;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x7684;&#x7236;&#x7EA7;&#x5143;&#x7D20;&#x7684;&#x7B2C;n&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x3002;

:first-child,&#x5339;&#x914D;&#x5230;&#x7236;&#x7EA7;&#x5143;&#x7D20;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x3002;

:list-child,&#x5339;&#x914D;&#x5230;&#x7236;&#x7EA7;&#x5143;&#x7D20;&#x7684;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x3002;

:nth-of-type(n),&#x5339;&#x914D;&#x5230;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x7B2C;n&#x4E2A;&#x5144;&#x5F1F;&#x5143;&#x7D20;&#x3002;

:first-of-type,&#x5339;&#x914D;&#x5230;&#x540C;&#x7C7B;&#x578B;&#x5143;&#x7D20;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x3002;

:list-of-type,&#x5339;&#x914D;&#x5230;&#x540C;&#x7C7B;&#x578B;&#x5143;&#x7D20;&#x7684;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x3002;

:focus,&#x5F53;&#x5143;&#x7D20;&#x83B7;&#x53D6;&#x7126;&#x70B9;&#x65F6;&#xFF0C;&#x53D1;&#x751F;&#x7684;&#x6837;&#x5F0F;&#x6539;&#x53D8;&#x3002;

:checked,&#x5F53;&#x5143;&#x7D20;&#x9009;&#x4E2D;&#x72B6;&#x6001;&#x65F6;&#xFF0C;&#x53D1;&#x751F;&#x4E8B;&#x4EF6;&#x3002;
</code></pre><p>a&#x6807;&#x7B7E;&#x7684;&#x56DB;&#x4E2A;&#x72B6;&#x6001;</p>
<pre><code>(&#x6CE8;&#x610F;&#x4E66;&#x5199;&#x7684;&#x987A;&#x5E8F;&#xFF0C;&#x4E0D;&#x80FD;&#x8C03;&#x6362;)
link &gt; visited &gt; hover &gt; active

.test3:link{/*&#x672A;&#x70B9;&#x51FB;&#x65F6;&#x7684;&#x72B6;&#x6001;*/
                color: red;
            }
.test3:visited{
            /*&#x70B9;&#x51FB;&#x540E;&#x7684;&#x72B6;&#x6001;*/
                color: black;
            }

.test3:hover{
            /*&#x9F20;&#x6807;&#x505C;&#x5143;&#x7D20;&#x4E0A;&#x65F6;&#x7684;&#x72B6;&#x6001;*/
            color: pink;    
            }
.test3:active{
            /* &#x9F20;&#x6807;&#x6309;&#x4E0B;&#x65F6;&#x7684;&#x72B6;&#x6001;*/
                color: skyblue;
            }
</code></pre><p>&#x591A;&#x884C;&#x6587;&#x5B57;&#x6EA2;&#x51FA;&#x5904;&#x7406;&#x65B9;&#x6CD5;</p>
<pre><code>height: 70px;
overflow: hidden;/*&#x8D85;&#x51FA;&#x90E8;&#x5206;&#x9690;&#x85CF;*/
-webkit-line-clamp: 5;&#x5B9A;&#x4E49;&#x6587;&#x672C;&#x663E;&#x793A;&#x7684;&#x884C;&#x6570;
display: -webkit-box;&#x7528;&#x6765;&#x517C;&#x5BB9;webkit&#x5185;&#x6838;&#x7684;&#x6D4F;&#x89C8;&#x5668;
-webkit-box-orient: vertical;&#x4F7F;&#x6EA2;&#x51FA;&#x6587;&#x5B57;&#x53D8;&#x4E3A;...
</code></pre><p>&#x4E00;&#x884C;&#x6587;&#x5B57;&#x6EA2;&#x51FA;&#x5904;&#x7406;</p>
<pre><code>.test{
    width: 220px;
    border: 2px solid #000;
    overflow: hidden;
    white-space: nowrap;&#x5F3A;&#x5236;&#x6587;&#x5B57;&#x4E00;&#x884C;&#x663E;&#x793A;
    text-overflow: ellipsis;&#x4F7F;&#x6EA2;&#x51FA;&#x6587;&#x5B57;&#x53D8;&#x4E3A;...
    }
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../index.html" class="navigation navigation-prev " aria-label="Previous page: Introduction"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../img/gitbook的安装.html" class="navigation navigation-next " aria-label="Next page: gitbook的安装"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
